package com.fr.data.core.db.handler;

import com.fr.data.core.db.dialect.Dialect;
import java.lang.reflect.Method;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class UnknownTypeHandler
  implements SQLTypeHandler
{
  public void setValue(PreparedStatement paramPreparedStatement, int paramInt1, Object paramObject, int paramInt2, Dialect paramDialect)
    throws SQLException
  {
    paramPreparedStatement.setObject(paramInt1, paramObject);
  }

  private static Class getBaseClass(Class paramClass)
    throws NoSuchMethodException
  {
    String str = "getEnclosingClass";
    Method localMethod = null;
    Class localClass = null;
    try
    {
      localMethod = paramClass.getClass().getMethod(str, (Class[])null);
      localClass = (Class)localMethod.invoke(paramClass, (Object[])null);
    }
    catch (Exception localException)
    {
      throw new NoSuchMethodException(localException.getMessage());
    }
    return localClass;
  }

  public Object getValue(ResultSet paramResultSet, int paramInt1, int paramInt2, Dialect paramDialect)
    throws SQLException
  {
    return paramResultSet.getObject(paramInt1);
  }
}